package com.designpattern.softwaredesignpatternstudy.pdai.chain;

/**
 * @author: Aster
 * @note:
 * @create: 2025-07-18 13:43
 **/
public class Client {
    public static void main(String[] args) {
        Handler h1 = new ConcreteHandler1(null);
        Handler h2 = new ConcreteHandler2(h1);
        Request request1 = new Request(RequestType.REQUEST_TYPE_1, "name1");
        h2.handleRequest(request1);
        Request request2 = new Request(RequestType.REQUEST_TYPE_2, "name2");
        h2.handleRequest(request2);
    }
}
